projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eea724
)
icon cache: Fix double free
author
Alexander Larsson
<alexl@redhat.com>
Fri, 30 Nov 2012 15:18:14 +0000
(16:18 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Fri, 30 Nov 2012 15:19:13 +0000
(16:19 +0100)
The symbolic icon cache code free crashed with a double free
due to a missing ->next in the loop.
gtk/gtkicontheme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkicontheme.c
b/gtk/gtkicontheme.c
index dc589254c386c6652b88ea20b295c3d4d423af54..0520686206cdd467cbc034b9af24d4fcaf32c7b9 100644
(file)
--- a/
gtk/gtkicontheme.c
+++ b/
gtk/gtkicontheme.c
@@
-1568,7
+1568,7
@@
symbolic_pixbuf_cache_free (SymbolicPixbufCache *cache)
while (cache != NULL)
{
- next = cache;
+ next = cache
->next
;
g_object_unref (cache->pixbuf);
g_free (cache);